<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<script type="text/javascript">
			//声明变量
			var test;
			//隐式声明方式
			var arr = [];

			//赋值
			//直接赋值 相当变量声明并且赋值 var test = 1;
			var arr = ['冬瓜','西瓜','南瓜','北瓜'];
//			  数组的下标：0       1     2       3

			//声明完再赋值
			var arr2 = [];
			arr2[0] = 'Html';
			arr2[1] = 'Div';
			arr2[2] = 'Css';
			document.write(arr2);
		</script>
	</head>
	<body>

	</body>
</html>
